/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controladores.Form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

/**
 *
 * @author a70204
 */
public class InsertarCongresosForm extends org.apache.struts.action.ActionForm {
    private String cedula;
    private String codigoCongreso;
    private String nombre;
    private String fechaInicio;
    private String fechaTerminacion;
    private String descripcion;
    private String pais;
    private String ponencia;
    
    /**
     * @return
     */
    public String getCedula() {
        return cedula;
    }
    public String getCodigoCongreso() {
        return codigoCongreso;
    }
    public String getNombre() {
        return nombre;
    }
    public String getFechaInicio() {
        return fechaInicio;
    }
    public String getFechaTerminacion() {
        return fechaTerminacion;
    }
    public String getDescripcion() {
        return descripcion;
    }
    public String getPais() {
        return pais;
    }
    public String getPonencia() {
        return ponencia;
    }
    /**
     * @param string
     */
    public void setCedula(String string) {
        cedula = string;
    }
    public void setCodigoCongreso(String string) {
        codigoCongreso = string;
    }
    public void setNombre(String string) {
        nombre = string;
    }
    public void setFechaInicio(String string) {
        fechaInicio = string;
    }
    public void setFechaTerminacion(String string) {
        fechaTerminacion = string;
    }
    public void setDescripcion(String string) {
        descripcion = string;
    }
    public void setPais(String string) {
        pais = string;
    }
    public void setPonencia(String string) {
        ponencia = string;
    }
    /**
     *
     */
    public InsertarCongresosForm() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    @Override
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();
        /*if (getName() == null || getName().length() < 1) {
            errors.add("name", new ActionMessage("error.name.required"));
            // TODO: add 'error.name.required' key to your resources
        }*/
        return errors;
    }
}
